package wangjg.android.media.record;

import android.content.Context;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
  
/** 
 * com.Aina.Android Pro_Camera 
 *  
 * @author Aina.huang E-mail: 674023920@qq.com 
 * @version 创建时间：2010 Jul 7, 2010 2:50:15 PM 类说明 
 */  
public class VideoPreview extends SurfaceView implements SurfaceHolder.Callback {  
    private SurfaceHolder holder = null;  
  
    public VideoPreview(Context context) {  
        super(context);
        Log.v("TAG", "PreView()");  
        holder = this.getHolder();  
        holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);  
        holder.addCallback(this);  
    }  
  
    public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {  
        Log.v("TAG", "surfaceChanged");  
    }  
  
    public void surfaceCreated(SurfaceHolder holder) {  
        Log.v("TAG", "surfaceCreated");
    }  
  
    public void surfaceDestroyed(SurfaceHolder holder) {  
        Log.v("TAG", "surfaceDestroyed"); 
    }  

}  